Contents | Index | < Browse | Browse >

LETTERstrftimeULETTER Formatted output of date and time into a string.

Overview
#include <time.h>

r = strftime(s,size,format,tp);

size_t r;
char *s;
size_t size;
const char *format;
const struct tm *tp;

Portability
ANSI

Description
Similar to sprintf, this function writes formatted output into a string. However, this routine uses a time format template and has a fixed number and order of arguments.
"s"'s size must be big enough to contain the output including the terminating zero byte.

Returns
The number of characters written.